/*
 *  Copyright 2025 Collate.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *  http://www.apache.org/licenses/LICENSE-2.0
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

@import (reference) '../../../styles/variables.less';

.contract-schema-component-container {
  .column-status-icon {
    font-size: 16px;
    &.success {
      color: transparent;
    }
  }
}

.ant-pagination.schema-custom-pagination {
  align-items: center;
  &.ant-table-pagination-right {
    justify-content: center;
  }

  .ant-pagination-prev,
  .ant-pagination-next {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    background: @white;
    box-shadow: 0 0 0 1px rgba(10, 13, 18, 0.18) inset,
      0 -2px 0 0 rgba(10, 13, 18, 0.05) inset,
      0 1px 2px 0 rgba(10, 13, 18, 0.05);

    .anticon {
      color: @grey-400;
    }

    &:hover {
      background: @grey-100;
    }
  }

  .ant-pagination-prev {
    margin-right: 10px;
    .anticon {
      transform: rotate(180deg);
    }
  }

  .ant-pagination-disabled {
    opacity: 0.3;
  }

  .ant-pagination-item {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;

    a {
      color: @grey-500;
    }

    &:hover {
      a {
        color: @grey-300;
      }
    }
  }

  .ant-pagination-item-active {
    background: @grey-46;

    a {
      color: @grey-500;
    }
  }
}
